/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright (c) 2023-present Kaleidos INC
*/

@import url("tools/typography.css");
@import url("../../../styles/workspace.shared");

:host {
  display: block;
}

.workspace-item-top {
  align-items: center;
  background: var(--color-white);
  display: flex;
  gap: var(--spacing-16);
  justify-content: flex-start;
  margin-block-end: var(--spacing-16);
  padding: var(--spacing-8);
}

.workspace-item-action {
  display: flex;
  flex-shrink: 0;
  gap: var(--spacing-8);
  margin-inline-start: auto;
}

.workspace-item-title-wrapper {
  min-inline-size: 0;
}

.workspace-item-title-active {
  display: inline-block;

  &:focus,
  &:focus-visible {
    outline: solid 1px var(--color-secondary);
    text-decoration: none;
  }
}

.workspace-item-title {
  @mixin ellipsis;
  @mixin font-heading-4;

  color: var(--color-gray100);
  display: block;
  margin: 0;

  &.workspace-guest {
    color: var(--color-gray70);
    font-weight: var(--font-weight-regular);
  }

  &:hover:not(.workspace-guest) {
    color: var(--color-secondary);
  }
}

.workspace-show-all {
  margin-block-start: var(--spacing-16);
  margin-inline-start: var(--spacing-8);
}

tg-project-card {
  z-index: 2;
}
